package com.coderman.common.vo.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author zhangyukang
 * @since 2020/3/9 11:06
 * @version 1.0
 **/
@Data
public class UserEditVO {

	private Long id;

	@NotBlank(message = "用户名不能为空")
	private String username;

	@NotBlank(message = "昵称不能为空")
	private String nickname;

	@Email(message = "请输入正确的邮箱格式")
	private String email;

	@NotBlank(message = "电话号码不能为空")
	private String phoneNumber;

	@NotNull(message = "性别不能为空")
	private Integer sex;

	@JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日")
	@NotNull(message = "生日不能为空")
	private Date birth;

	@NotNull(message = "部门不能为空")
	private Long departmentId;

}
